* subr.el (accept-change-group): Fix arg usage.
authorChong Yidong <cyd@gnu.org>
Mon, 23 Apr 2012 15:48:22 +0000 (23:48 +0800)
committerChong Yidong <cyd@gnu.org>
Mon, 23 Apr 2012 15:48:22 +0000 (23:48 +0800)
lisp/ChangeLog
lisp/subr.el

index a8825af60ebfd4b8e5a8e467c894a5f7e86abaa0..c1c22eba1dd3c8794a4d823e9561ea8de114e37a 100644 (file)
@@ -1,3 +1,7 @@
+2012-04-23  Andreas Politz  <politza@fh-trier.de>
+
+       * subr.el (accept-change-group): Fix arg usage (Bug#6095).
+
 2012-04-23  Chong Yidong  <cyd@gnu.org>
 
        * cus-edit.el (customize-apropos, customize-apropos-options):
index 8e296aa742289e9f2213ee772d3815a786d08c3c..2404f6a56d2f4cbdf291091acef464655a9d5296 100644 (file)
@@ -2391,7 +2391,7 @@ to `accept-change-group' or `cancel-change-group'."
 This finishes the change group by accepting its changes as final."
   (dolist (elt handle)
     (with-current-buffer (car elt)
-      (if (eq elt t)
+      (if (eq (cdr elt) t)
          (setq buffer-undo-list t)))))
 
 (defun cancel-change-group (handle)